<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Apple - Documentation</title>

    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

    <link type="text/css" rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>

<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
  <div class="navicon"></div>
</label>

<label for="nav-trigger" class="overlay"></label>

<nav class="nav">
    <h2><a href="index.html">Home</a></h2><h3>Events</h3><ul><li><a href="Apple.html#event:beEaten">beEaten</a></li><li><a href="Environment.html#event:beforeDestroy">beforeDestroy</a></li></ul><h3>Classes</h3><ul><li><a href="Alive.html">Alive</a><ul class='methods'><li data-type='method'><a href="Alive.html#survive">survive</a></li></ul></li><li><a href="Apple.html">Apple</a><ul class='methods'><li data-type='method'><a href="Apple.html#survive">survive</a></li></ul></li><li><a href="Energy.html">Energy</a></li><li><a href="Environment.html">Environment</a><ul class='methods'><li data-type='method'><a href="Environment.html#start">start</a></li></ul></li><li><a href="Tree.html">Tree</a><ul class='methods'><li data-type='method'><a href="Tree.html#crop">crop</a></li><li data-type='method'><a href="Tree.html#survive">survive</a></li></ul></li></ul>
</nav>

<div id="main">
    
    <h1 class="page-title">Apple</h1>
    

    <!--container.tmpl-->





<section>



<header data-tmpl="container.tmpl">
    
        <h2>
        Apple
        </h2>
        
            <div class="lead"><p>Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.</p></div>
        
    

    
      <div class="bs-callout bs-callout-default">
        <h5>Members</h5>
        <br />
        <dl class="dl-horizontal methods-members">
        <dt>Fields &amp; Properties</dt><dd><ul>
            <li><a href="#color">color</a></li>
            
            <li><a href="#energy">energy</a></li>
            </ul></dd><dt>Methods</dt><dd><ul>
            <li><a href="#survive">survive</a></li>
            </ul></dd></dl></div>
</header>

<article>
    <div class="container-overview">
    
        <!--method.tmpl-->
<div class="method-details">





    
    <h3 class="constructor">Constructor</h3>
    

    
      <!--source-link.tmpl-->


<div class="pull-right source-link-container">
  <code class="source-link" data-tmpl="method-tmpl(1)">
    <i class="fa fa-file-o"></i>
    <a href="Apple.js.html">Apple.js</a>:<a href="Apple.js.html#line6">6</a>
  </code>
</div>

    

    <h4 class="name" id="Apple">
      <a href="#params-Apple"><span class="type-signature"></span>new Apple</a><span class="signature">()</span><span class="type-signature"></span>

    </h4>

    




















<div class="collapse_" id="methodCollapse-Apple">

  

  

<!-- details.tmpl -->








<dl class="dl-horizontal">

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


























</div>

<!--
<pre>
{"comment":"/**\n * Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.\n * @class\n * @extends Alive\n */","meta":{"range":[204,349],"filename":"Apple.js","lineno":6,"columnno":0,"path":"/home/sg/git/jsdoc-templates-demo/src","code":{"id":"astnode100000023","name":"Apple","type":"ClassDeclaration","paramnames":[]},"shortpath":"Apple.js"},"classdesc":"<p>Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.</p>","kind":"class","augments":["Alive"],"name":"Apple","longname":"Apple","scope":"global","params":[],"___id":"T000003R000003","___s":true,"attribs":"<span class=\"type-signature\"></span>","id":"Apple","signature":"<span class=\"signature\">()</span><span class=\"type-signature\"></span>","ancestors":[]}
</pre>
-->
</div>

    
    </div>

    
        <h3 class="subsection-title">Extends</h3>

        


    <ul>
        <li><a href="Alive.html">Alive</a></li>
    </ul>


    

    

    

     

    

    
        <h3 class="subsection-title">Members</h3>

        
            <!--members.tmpl-->
<div class="member-details">




  <!--source-link.tmpl-->


<div class="pull-right source-link-container">
  <code class="source-link" data-tmpl="method-tmpl(1)">
    <i class="fa fa-file-o"></i>
    <a href="Apple.js.html">Apple.js</a>:<a href="Apple.js.html#line13">13</a>
  </code>
</div>



<h4 class="name" id="color">
  <span class="type-signature"></span>color<span class="type-signature"> :String</span>
</h4>




<div class="description">
    <p>Donec imperdiet dignissim</p>
</div>


<div>

<!-- details.tmpl -->








<dl class="dl-horizontal">

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











</div>

</div>

        
            <!--members.tmpl-->
<div class="member-details">




  <!--source-link.tmpl-->


<div class="pull-right source-link-container">
  <code class="source-link" data-tmpl="method-tmpl(1)">
    <i class="fa fa-file-o"></i>
    <a href="Alive.js.html">Alive.js</a>:<a href="Alive.js.html#line11">11</a>
  </code>
</div>



<h4 class="name" id="energy">
  <span class="type-signature"></span>energy<span class="type-signature"></span>
</h4>




<div class="description">
    <p>amount of energy</p>
</div>


<div>

<!-- details.tmpl -->






    <h5 class="subsection-title">Properties:</h5>

    

<table class="props">
    <thead>
    <tr>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            

            <td class="type">
            
                
<span class="param-type"><a href="Energy.html">Energy</a></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<dl class="dl-horizontal">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a href="Alive.html#energy">Alive#energy</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
</dl>











</div>

</div>

        
    

    
        <h3 class="subsection-title">Methods</h3>

        
            <!--method.tmpl-->
<div class="method-details">



  <!--source-link.tmpl-->


<div class="pull-right source-link-container">
  <code class="source-link" data-tmpl="method-tmpl(1)">
    <i class="fa fa-file-o"></i>
    <a href="Alive.js.html">Alive.js</a>:<a href="Alive.js.html#line18">18</a>
  </code>
</div>




    

    

    <h4 class="name" id="survive">
      <a href="#params-survive"><span class="type-signature"></span>survive</a><span class="signature">(environment)</span><span class="type-signature"> &rarr; {<a href="Energy.html">Energy</a>}</span>

    </h4>

    




















<div class="collapse_" id="methodCollapse-survive">

  

  

<!-- details.tmpl -->








<dl class="dl-horizontal">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a href="Alive.html#survive">Alive#survive</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
</dl>








  <div id="params-survive" class="bs-callout bs-callout-primary">
    <h5>Parameters</h5>
    <!--params.tmpl-->


<table class="table table-bordered">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>environment</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Environment.html">Environment</a></span>


            
            </td>

            

            

            <td class="description last"><p>the environment when this Alive thing is surviving</p></td>
        </tr>

    
    </tbody>
</table>

  </div>













  <div class="bs-callout bs-callout-success">
    <h5>Returns </h5>

        
<div class="param-desc">
    <p>the energy wasted in this surviving instance</p>
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Energy.html">Energy</a></span>


    </dd>
</dl>

    
</div>
  






</div>

<!--
<pre>
{"comment":"/**\n     * @param {Environment} environment the environment when this Alive thing is surviving\n     * @return {Energy} the energy wasted in this surviving instance\n     * @method\n     */","meta":{"range":[527,561],"filename":"Alive.js","lineno":18,"columnno":1,"path":"/home/sg/git/jsdoc-templates-demo/src","code":{"id":"astnode100000015","name":"Alive#survive","type":"MethodDefinition","paramnames":[]},"vars":{"":null},"shortpath":"Alive.js"},"params":[{"type":{"names":["Environment"]},"description":"<p>the environment when this Alive thing is surviving</p>","name":"environment"}],"returns":[{"type":{"names":["Energy"]},"description":"<p>the energy wasted in this surviving instance</p>"}],"kind":"function","name":"survive","longname":"Apple#survive","memberof":"Apple","scope":"instance","inherits":"Alive#survive","inherited":true,"___id":"T000002R000028","___s":true,"attribs":"<span class=\"type-signature\"></span>","id":"survive","signature":"<span class=\"signature\">(environment)</span><span class=\"type-signature\"> &rarr; {<a href=\"Energy.html\">Energy</a>}</span>","ancestors":["<a href=\"Apple.html\">Apple</a>#"]}
</pre>
-->
</div>

        
    

    

    
        <h3 class="subsection-title">Events</h3>

        
            <!--method.tmpl-->
<div class="method-details">



  <!--source-link.tmpl-->


<div class="pull-right source-link-container">
  <code class="source-link" data-tmpl="method-tmpl(1)">
    <i class="fa fa-file-o"></i>
    <a href="Apple.js.html">Apple.js</a>:<a href="Apple.js.html#line17">17</a>
  </code>
</div>




    

    

    <h4 class="name" id="event:beEaten">
      <a href="#params-beEaten">beEaten</a>

    </h4>

    













<div class="description">
    <p>Sed vehicula purus dui</p>
</div>








<div class="collapse_" id="methodCollapse-beEaten">

  
      <h5>Type:</h5>
      <ul>
          <li>
              
<span class="param-type"><a href="Energy.html">Energy</a></span>


          </li>
      </ul>
  

  

<!-- details.tmpl -->



  <!--source-link.tmpl-->


<div class="pull-right source-link-container">
  <code class="source-link" data-tmpl="method-tmpl(1)">
    <i class="fa fa-file-o"></i>
    <a href="Apple.js.html">Apple.js</a>:<a href="Apple.js.html#line17">17</a>
  </code>
</div>







<dl class="dl-horizontal">

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


























</div>

<!--
<pre>
{"comment":"/**\n * Sed vehicula purus dui\n * @event Apple#beEaten\n * @type {Energy}\n */","meta":{"filename":"Apple.js","lineno":17,"columnno":0,"path":"/home/sg/git/jsdoc-templates-demo/src","code":{},"shortpath":"Apple.js"},"description":"<p>Sed vehicula purus dui</p>","kind":"event","name":"beEaten","type":{"names":["Energy"]},"memberof":"Apple","longname":"Apple#event:beEaten","scope":"instance","___id":"T000002R000006","___s":true,"attribs":"","id":"event:beEaten","ancestors":["<a href=\"Apple.html\">Apple</a>#"]}
</pre>
-->
</div>

        
    
</article>

</section>




</div>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Oct 31 2017 10:48:56 GMT-0300 (-03) using the LOKE theme.
</footer>

<script>prettyPrint();</script>
<script src="scripts/linenumber.js"></script>
</body>
</html>